import { defineStore } from 'pinia'

const useSettingStore = defineStore('setting', {
  state: () => {
    return {
      show_nav: true
    }
  },
  actions: {
    setNavShow(flg) {
      return this.show_nav = flg
    }
  },
  persist: {
    enabled: true, // 开启数据缓存 +++++++
  }
})

export default useSettingStore